package com.alldios.deposit.api.pay;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alldios.deposit.anno.Desc;
import com.alldios.deposit.api.HfReq;


public class CashReq extends HfReq {


    @Desc("订单号")
    public String OrdId;


    @Desc("用户客户号")
    public String UsrCustId;


    @Desc("交易金额")
    public String TransAmt;


    @Desc("商户收取服务费金额")
    public String ServFee;


    @Desc("商户子账户号")
    public String ServFeeAcctId;


    @Desc("入参扩展域")
    public String ReqExt;


    @Desc("手续费收取对象")
    public String FeeObjFlag;


    @Desc("手续费收取子账户")
    public String FeeAcctId;


    @Desc("取现渠道")
    public String CashChl;


    @Desc("页面类型")
    public String PageType;

    public void setExt() {
        JSONArray array = new JSONArray();
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("FeeObjFlag", FeeObjFlag);
        jsonObject.put("FeeAcctId", FeeAcctId);
        jsonObject.put("CashChl", CashChl);
        array.add(jsonObject);
        ReqExt = array.toJSONString();
    }

    @Override
    public String[] signList() {
        return new String[]{"Version", "CmdId", "MerCustId", "OrdId", "UsrCustId", "TransAmt", "ServFee",
                "ServFeeAcctId", "ReqExt", "PageType", "RetUrl", "BgRetUrl"};
    }

}
